package com.nexgo.payment.util;


/**
 * Created by xiaox on 2017/9/6.
 */

public class EmvUtils {
    public static String getInterCodeByAid(String aid) {
        final String ridTab[] = {
                "A000000333",
                "A000000003",
                "A000000004",
                "A000000065"
        };
        final String interCodeTab[] = {
                "CUP",
                "VIS",
                "MCC",
                "JCB"
        };
        for (int i = 0; i < ridTab.length; i++) {
            if (aid.toUpperCase().startsWith(ridTab[i])) return interCodeTab[i];
        }
        return "000";
    }
}
